Skip to content

[Breaking] Change from Collection[] to Record<string, Collection>#13

Merged
saenyakorn merged 7 commits into
mainfrom
yu/breaking/collection
May 27, 2025
Merged

[Breaking] Change from Collection[] to Record<string, Collection>#13
saenyakorn merged 7 commits into
mainfrom
yu/breaking/collection

Conversation

@saenyakorn
Copy link
Copy Markdown
Member

Why I did

  • In the very near future, I would like to add extensions feature which can add more field by using well-prepared template (of course type-safe). But, with Collection[], it's really hard to implement that. Moreover, there's no point to keeping collections as a array. So, I decided to change it to Record<string, Collection>

What I did

  • Change from Collection[] to Record<string, Collection>
  • Run typecheck to check if type error

Copy link
Copy Markdown
Collaborator

@SupakornNetsuwan SupakornNetsuwan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Acknowledge

Base automatically changed from yu/feat/auth-2 to main May 27, 2025 12:34
@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented May 27, 2025

🦋 Changeset detected

Latest commit: 10030d6

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 0 packages

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@saenyakorn saenyakorn force-pushed the yu/breaking/collection branch from e890971 to 10030d6 Compare May 27, 2025 12:36
@saenyakorn saenyakorn merged commit 422e1d6 into main May 27, 2025
1 check passed
@saenyakorn saenyakorn deleted the yu/breaking/collection branch May 27, 2025 16:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants